package cwinsor.com.leaf_raking;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class PersonRakerTest {

	PersonRaker personRaker;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		personRaker = new PersonRaker();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testAddData() {

		ArrayList<String> theFields = new ArrayList<String>();


		// read data into a string array, use comma as separator
		String line;
		line = "raker"
				+ "," + "Cole"
				+ "," + "Winsor"
				+ "," + "10"
				+ "," + "Pat"
				+ "," + "M"
				+ "," + "v"
				+ "," + "11";
		Integer cnt = new Integer(0);
		// current availability
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();
		}
		// last availability
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();
		}
		// team assignment
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();
		}
		// preferred change
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();

		}

		line = line + ",";	//Degree of change	
		line = line + ",";	//happiness	

		// proposed change
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();
		}
		// new team assignment
		for (WorkShift shift: WorkShift.asList()) {
			line = line + "," + cnt.toString();
		}

		line = line + "978-621-2724";
		line = line + "978-266-2877";
		line = line + "END";



		fail("Not yet implemented 2");
	}

}
